package com.hudongwx.godoffood.utils;

import org.xutils.http.app.ResponseParser;
import org.xutils.http.request.UriRequest;

import java.lang.reflect.Type;

/**
 * Created by hudongwx on 16-11-4.
 */
public class JsonParse implements ResponseParser {
    @Override
    public void checkResponse(UriRequest request) throws Throwable {

    }

    @Override
    public Object parse(Type resultType, Class<?> resultClass, String result) throws Throwable {
        MyJsonObject myJsonObject = new MyJsonObject(result);
        return myJsonObject;
    }
}
